package com.lht.femalecat.wbio;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * @Author:骆宏图
 * @CreateDate: 12:33 2018/7/26.
 * @Description:
 * @Modified By:
 */
public class WBioClient {


    public static void main(String[] args) throws IOException {

        Socket socket=new Socket("127.0.0.1",8080);

        BufferedReader in=new BufferedReader(new InputStreamReader(socket.getInputStream()));

        PrintWriter out=new PrintWriter(socket.getOutputStream());

        out.println("nihao");
        out.println("才是真的好");
        out.println("over");
        out.flush();

        in.readLine();
    }
}
